<!--<html><body onLoad="clock()">

<span id="pendule" style="position:absolute;left:10;top:10;"></span>

<table align="center" border="0" cellpadding="0" cellspacing="0">
  <tr><td id="timeDisp"></td></tr>
</table>
<script language="javascript">
function clock()
{
  var digital=new Date();
  var year=digital.getYear();
  var month=digital.getMonth()+1;
  var day=digital.getDate();
  
  var hours=digital.getHours();
  var minutes=digital.getMinutes();
  var seconds=digital.getSeconds();
  if(minutes<=9)minutes="0"+minutes;
  if(seconds<=9)seconds="0"+seconds;
  dispTime=year+"."+month+"."+day+"<br>"+hours+":"+minutes+":<font color=red>"+seconds+"<font>";
  dispTime2=year+"."+month+"."+day+" "+hours+":"+minutes+":"+seconds;
  timeDisp.innerHTML=dispTime;
  status=dispTime2;
  setTimeout("clock()",1000);  
}
</script>
</body></html>-->

<html>
<body>
<center>
	<meta charset='UTF-8' />
<form name="time">
  <input type="text" name="clock" size="20" value="" onFocus="document.time.clock.blur()"><p>&nbsp;</p>
  <input type="button" name="sc" value="计 时" onClick="stopOrCoutinue()">
</form>
</center>
<script language="javascript">
  var sec=0;
  var min=0;
  var hou=0;
  var timeout=0;
  function countTime()
  {
    sec++;
 if(sec==60)
 {
   sec=0;min+=1;
 }
 if(min==60)
 {
   min=0;hou+=1;
 }
 document.time.clock.value=hou+"时"+min+"分"+sec+" 秒";
 timeout=setTimeout("countTime()",1000);
  }
  function stopOrCoutinue()
  {
    if(timeout==0)
 {
   countTime();
   document.time.sc.value=" 暂停 ";
 }
 else
 {
   clearTimeout(timeout);
   timeout=0;
   document.time.sc.value=" 计时 ";
 }
  }
</script>
</body>
</html>